import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:flutter_shop/widget/load_image.dart';

///商品详情部分
class GoodsDetailPart extends StatelessWidget {
  final String richText;
  final String pic;

  GoodsDetailPart({Key key, this.richText, this.pic}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Container(
        child: Column(
          children: <Widget>[
            Html(data: richText),
            LoadImage(pic),
          ],
        ),
      ),
    );
  }
}
